package com.lrkj.back;

import org.apache.log4j.Logger;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class PBSTrackManagerPostProcessor implements BeanPostProcessor {
	private Logger log = Logger.getLogger(PBSTrackManagerPostProcessor.class);
    
	public Object postProcessAfterInitialization(Object obj, String arg1)  
            throws BeansException {  
        if(obj instanceof StartUpOnLoadData) {  
            ((StartUpOnLoadData)obj).loadData(); //调用方法加载数据  
            log.info("....init data has load");
        }  
        return obj;  
    }  
  
    public Object postProcessBeforeInitialization(Object arg0, String arg1)  
            throws BeansException {  
        return arg0;  
    }  
  
}
